<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<% String path = request.getContextPath(); %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
	<title>List</title>
	<style type="text/css">
		.error{ color: red; }
	</style>
</head>
<body>
	<center>当前用户：<%=session.getAttribute("name").toString() %>&nbsp;&nbsp;&nbsp;&nbsp;<a href="<%=path %>/user/outLogin">注销</a></center>
	<c:forEach items="${result}" var="item">
		ID: <a href="<%=path %>/user/list/${item.id }">${item.id }</a> --- name: ${item.name } --- pass: ${item.pass } --- age: ${item.age } <a href="<%=path %>/user/delete/${item.id }">delete</a><hr/> 
	</c:forEach>
	<span class="error">${message}</span>
</body>
</html>
